package com.turing.usdtpay.mvp.contract;

import android.app.Activity;

import com.turing.usdtpay.entity.OrderInfoData;
import com.turing.usdtpay.entity.OrderManagerData;
import com.turing.usdtpay.mvp.presenter.BasePresenter;
import com.turing.usdtpay.mvp.view.BaseView;

/**
 * @作者：JAY
 * @创建时间：2019/11/6 19:38
 * @描述：
 **/
public class OrderManagerContract {

    public interface View extends BaseView<Present> {

        public void onSuccess(OrderManagerData data,int type,boolean fresh);

        public void cancelSuccess();

        public void getSuccess();

        public void paySuccess();

        public void getOrderSuccess(OrderInfoData data,int type);

        public void onFail(String msg);
    }

    public interface Present extends BasePresenter {
        public void getOrderList(Activity activity, int state, int page, int page_num, boolean fresh);

        public void cancelOrder(Activity activity,String order);

        public void confirmGet(Activity activity,String order);

        public void confirmPay(Activity activity,String order);

        public void getBuyOrder(Activity activity,String order,int type);
    }
}
